/**
 * Created by zhoushg on 2017/9/29.
 */
import getData from './funcs/getData'
import {isEmptyObject, isEmptyStr, isRange} from './funcs/required'
import {toast} from '../utils/gui_main'
import { getToken } from '../utils/auth'
 // addCode
			// B1MADZTNB Start
			
        export function ADtest3 (data) { // test3-新增
            var data = data
            return new Promise(resolve => {
            
            let data2 = {
              
            name: data.name, // 添加测试
            age: data.age // 年龄
            }
            data = data2
            data.token = getToken()
              function callBack (data) {
                resolve(data)
              }
              getData({
                url: '/test3/add',
                method: 'post',
                data
              }, callBack)
            })
          }
        
			// B1MADZTNB end
			